import java.io.*;
public class Gethzip{
	public static void main(String args[]){
		try{
			BufferedReader br=new BufferedReader(new InputStreamReader(new FileInputStream("hz_ip_duan.txt")));
			BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(new FileOutputStream("hz_all_ip.txt")));
			String line;
			while((line=br.readLine())!=null){
				System.out.println(line);
				for(int i=0;i<=255;i++){
					bw.write(line+i+"\n");
				}
			}
			br.close();
			bw.close();
		}catch(Exception e){
			System.out.println(e);
		}

	}
}